package com.miracle9.game.service;

import com.miracle9.game.dao.UserShutupServiceDao;
import com.miracle9.game.entity.UserShutup;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userShutupService")
public class UserShutupService
{
  @Autowired
  private UserShutupServiceDao userShutupServiceDao;
  
  public List<UserShutup> getAllUserShutup()
  {
    return this.userShutupServiceDao.getAllUserShutup();
  }
  
  public void deleteUserShutup(int userId)
  {
    this.userShutupServiceDao.deleteByUid(userId);
  }
}
